require File.dirname(__FILE__) + '/../common/rightscale-api'

class Server < RightScaleAPI

  def initialize(api = RightAPI.new)
    super(api)
  end

  def run_script(server_id, script_id)
    params = {'right_script' => script_id}
    @api.send("servers/#{server_id}/run_script", "post", params)
  end

end